<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%String path = request.getContextPath(); %>
<!DOCTYPE html>
<html>
<head>
        <meta charset="UTF-8">
        <title>欢迎页面-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      
        <link rel="stylesheet" href="<%=path %>/back/css/font.css">
        <link rel="stylesheet" href="<%=path %>/back/css/xadmin.css">
        <script type="text/javascript" src="<%=path %>/back/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="<%=path %>/back/js/xadmin.js"></script>
            <script type="text/javascript" src="<%=path%>/back/js/jquery-3.5.1.min.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
            <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
            <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
<body>
	<style type="text/css">
    	.center{
    	margin-top:100px;
    	}
    </style>
        <div id="connect" class="center">
            
				                <form id="myform"  method="post"  action="<%=path%>/TasteServlet?action=addTaste" class="layui-form">
						                  <div class="layui-form-item">
						                      <label for="username" class="layui-form-label">
						                          <span class="x-red">*</span>口味名称
						                      </label>
						                      <div class="layui-input-inline">
						                          <input type="text" id="checkCookName" name="tasteName"  class="layui-input">
						                      </div>
						                      <div class="layui-form-mid layui-word-aux">
						                          <span  class="x-red">*</span>
						                          <span id="checkCookTypeName">将加入口味列表</span>
						                          
						                            <%
														String errMes = request.getParameter("errMes");
													%>
													<%
														if("1".equals(errMes))
														{
													%>
															<font color="red">口味重复</font>
													<%
														}
													%>
													
													<%
														if("0".equals(errMes))
														{
													%>
															<font color="red">添加成功</font>
													<%
														}
													%>
						                          
						                      </div>
						                  </div>					
						                  <div class="layui-form-item">
						                      <label for="L_repass" class="layui-form-label">
						                      </label>
						                      <input id="button" type="submit" value="添加"   class="layui-btn" >        
						                  </div>
				              </form>
	      </div>
</body>
</html>